package com.ttg.common.gxp;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GxpConfiguration {

    @Bean
    public ContextAware contextAware() {
        return new ContextAware();
    }

    @Bean
    @ConfigurationProperties(prefix = "gxp.tzg")
    public GxpProperties createGxpProperties() {
        return new GxpProperties();
    }

    @Bean
    @ConfigurationProperties(prefix = "gxp.messagev2")
    public GxpMessageV2Properties createGxpMessageV2Properties() {
        return new GxpMessageV2Properties();
    }

}
